package com.celi.scs.common.entity;

import lombok.Data;
import java.io.Serializable;
import java.util.List;

/**
 * @Author: changAoWen
 * @Date: 2024/1/31 16:38
 * @Description 描述
 */
@Data
public class UserSelectedElement implements Serializable {

    /**
     * 元素id
     */
    private String elementId;

    /**
     * 元素名称
     */
    private String elementName;

    /**
     * 是否单选
     */
    private Boolean isRadioSelect;

    /**
     * 选择的审批人Id
     */
    private List<String> userIds;

    public static UserSelectedElement createUserSelectedElement(String elementId, String...userIds) {
        UserSelectedElement userSelectedElement = new UserSelectedElement();
        userSelectedElement.setElementId(elementId);
        userSelectedElement.setUserIds(List.of(userIds));
        return userSelectedElement;
    }
}
